<?php
// +----------------------------------------------------------------------
// | Quotes [ 只为给用户更好的体验]**[我知道发出来有人会盗用,但请您留版权]
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 零度  <2109877665@qq.com>          盗用不留版权,你就不配拿去!
// +----------------------------------------------------------------------
// | Date: 2019年08月20日
// +----------------------------------------------------------------------
$title='用户管理';
include './Head.php';

$count1=$DB->query("SELECT count(*) from `pay_check` where `qq`='{$userrow['qq']}'")->fetchColumn();
//$count3=$DB->query("SELECT count(nums) from pay_daili where status='1' and `pid`='{$userrow['pid']}'")->fetchColumn();
$row=$DB->query("SELECT * FROM `pay_check` WHERE `qq`='{$userrow['qq']}' limit 1")->fetch();
?>
<div class="block">
        <div class="panel-heading"><h3 class="panel-title">数据中心</h3></div>
		<div class="panel-body">
        <table class="table table-bordered"><thead>
			<tr height="25">
			<td align="center"><font color="#808080"><b><i class="glyphicon glyphicon-exclamation-sign">[<?php echo getQQNick($userrow['qq'])?>]</i></b></span></br><span id="count3">可用额度:<font color="red"><?php echo ($userrow['money'])?></font>元</span></font></td>
			<td align="center"><font color="#808080"><b><span class="glyphicon glyphicon-tint"></span>旗下授权总数：</b></br><span id="count1"><?php echo $count1?></span>个</font></td>
			</tr>
			<tr height="25">
			<td align="center"><font color="#808080"><i class="glyphicon glyphicon-exclamation-sign"></i><b><span class="glyphicon glyphicon-sign"></span>云端账号：</b></br><span id="count1"><?php echo $userrow['pid']?></span></font></td>
			<td align="center"><font color="#808080"><b><i class="glyphicon glyphicon-exclamation-sign"></i></b></span>云端密码：</br><span id="count3"><?php echo $userrow['key']?></span></font></td>
			</tr>
          </table>
	    </div>
		</div>
     <body>
<div class="block">
<div class="panel-body" style="text-align: center;">
<li class="list-group-item"><span class="glyphicon glyphicon-stats"></span> <b>授权ＱＱ：</b> <?=$userrow['qq']?></a></li>
<li class="list-group-item"><span class="glyphicon glyphicon-stats"></span> <b>云端 PID：</b> <?=$userrow['pid']?></li>
<li class="list-group-item"><span class="glyphicon glyphicon-stats"></span> <b>云端 KEY：</b> <?=$userrow['key']?></li>
<li class="list-group-item"><span class="glyphicon glyphicon-time"></span> <b>授权代码：</b> <?=$row['authcode']?></li>
<li class="list-group-item"><span class="glyphicon glyphicon-list"></span> <b>下载类型：</b> 
<a href="Download.php?my=installer&r=<?=time()?>" class="btn btn-xs btn-success">完整安装包</a>&nbsp;
<a href="Download.php?my=updater&r=<?=time()?>" class="btn btn-xs btn-primary">更新包</a>
</li>
</ul>
<div class="panel-footer">
<span class="glyphicon glyphicon-info-sign"></span> 新购用户请下载完整安装包！
</div>
</div>
	  <div class="panel panel-primary">
	  <div class="panel-body">
          <h4><span class="glyphicon glyphicon-info-sign"></span> 注意事项</h4>
1.同一个授权QQ旗下不能搭建两个平台<br/>2.泄露源码或云端账号密码泄露,系统会自动封掉,不信可以试试！<br/>
        </div>
      </div>
	   <!--div class="panel panel-info">
        <div class="panel-heading"><h3 class="panel-title">服务器数据</h3></div>
		<div class="panel-body">
        <ul class="list-group">
		<li class="list-group-item">
			<b>PHP 版本：</b><?php echo phpversion() ?>
			<?php if(ini_get('safe_mode')) { echo '线程安全'; } else { echo '非线程安全'; } ?>
		</li>
		<li class="list-group-item">
			<b>MySQL 版本：</b><?php $DB_VERSION = $DB->query("select VERSION()")->fetch(); echo $DB_VERSION[0]; ?>
		</li>
		<li class="list-group-item">
			<b>服务器软件：</b><?php echo $_SERVER['SERVER_SOFTWARE'] ?>
		</li-->
		<!--li class="list-group-item">
			<b>服务器真实IP：</b><?php echo get_curl($conf['Instant_url'].'api/instant_api.php?do=Get_Ip'); ?>
		</li-->
	</ul>
		</div>
      </div>
    </div>
  </div>